package com.gwq.computed;

public class SubstractBase {


    static final int UPPER = 100;
    static final int LOWER = 0;


    SubstractOperation[][]  produceSubtionBase (){
        SubstractOperation[][]base = new SubstractOperation[UPPER+1][UPPER+1];
        SubstractOperation ao;
        for(int i=0;i<=UPPER;i++){
            for(int j=0;j<=UPPER;j++){
                if(i-j>=LOWER){
                    ao = new SubstractOperation();
                    base[i][j] = ao;
                    ao.unsafeConstructor(i,j,i-j,'-');
                }
            }
        }
        return base;
    }



    public void displayBase(BinaryOperation2[][] base){
        for(BinaryOperation2[] row: base){
            for(BinaryOperation2 operation: row){
                if(operation!=null){
                    System.out.print(operation.fullString()+"\t");
                }
            }
            System.out.println();
        }
    }


}
